\hypertarget{class_contact_list}{
\section{\-Contact\-List \-Class \-Reference}
\label{class_contact_list}\index{\-Contact\-List@{\-Contact\-List}}
}


\-The \hyperlink{class_contact_list}{\-Contact\-List} helper methods.  




{\ttfamily \#include $<$contactlist.\-h$>$}

\subsection*{\-Signals}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_contact_list_a3a5c57a8c0bbe5a7f6fd8350122cb580}{pass\-Name} (\-Q\-String)
\begin{DoxyCompactList}\small\item\em \-Signal that sends the username. \end{DoxyCompactList}\item 
void \hyperlink{class_contact_list_ac9e57f3c02887a5475a88a354c1c0027}{pass\-Host} (\-Q\-String)
\begin{DoxyCompactList}\small\item\em \-Signal that sends the address of the user. \end{DoxyCompactList}\item 
void \hyperlink{class_contact_list_a4a76120938512ead7848ccf99b47034b}{pass\-Num\-Friends} (\-Q\-String)
\begin{DoxyCompactList}\small\item\em \-Signal sends the number of friends. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_contact_list_ab1f1019afcf75c01e8297e215e8d44f9}{
\hyperlink{class_contact_list_ab1f1019afcf75c01e8297e215e8d44f9}{\-Contact\-List} (\-Q\-Widget $\ast$parent=0)}
\label{class_contact_list_ab1f1019afcf75c01e8297e215e8d44f9}

\begin{DoxyCompactList}\small\item\em \-Explicit \-Constructor for \hyperlink{class_contact_list}{\-Contact\-List}. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a1066160bf11c3abccb3b7801dd9eac01}{
\hyperlink{class_contact_list_a1066160bf11c3abccb3b7801dd9eac01}{\-Contact\-List} (\-Q\-Widget $\ast$parent, \hyperlink{class_client}{\-Client} $\ast$client)}
\label{class_contact_list_a1066160bf11c3abccb3b7801dd9eac01}

\begin{DoxyCompactList}\small\item\em \-Constructor for \hyperlink{class_contact_list}{\-Contact\-List}. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a8f3361944a317712dff8835d4eba8970}{
\hyperlink{class_contact_list_a8f3361944a317712dff8835d4eba8970}{$\sim$\-Contact\-List} ()}
\label{class_contact_list_a8f3361944a317712dff8835d4eba8970}

\begin{DoxyCompactList}\small\item\em \-Deconstructor for \hyperlink{class_contact_list}{\-Contact\-List}. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a123e49dea5fe04ab91ade79feb2afa7e}{
void {\bfseries close\-Event} (\-Q\-Close\-Event $\ast$)}
\label{class_contact_list_a123e49dea5fe04ab91ade79feb2afa7e}

\end{DoxyCompactItemize}
\subsection*{\-Private \-Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_contact_list_ac88b01325eb1c8e62860791714e40a5e}{on\-\_\-list\-Widget\-\_\-item\-Clicked} (\-Q\-List\-Widget\-Item $\ast$item)
\begin{DoxyCompactList}\small\item\em \-Slot that will determine if a user has been clicked on the \hyperlink{class_contact_list}{\-Contact\-List}. \end{DoxyCompactList}\item 
void \hyperlink{class_contact_list_a936b252866aced12a7d5b8cdb3f63ec0}{populate\-List} (\-Q\-String\-List)
\begin{DoxyCompactList}\small\item\em \-Slot that will add a user\-Name to the \hyperlink{class_contact_list}{\-Contact\-List}. \end{DoxyCompactList}\item 
void \hyperlink{class_contact_list_a40f2b1a0e9932ab2473e75bfac27fed6}{send\-Message} (\-Q\-String, \-Q\-String, \-Q\-String, \-Q\-String)
\begin{DoxyCompactList}\small\item\em \-Slot that sends the message with message attributes. \end{DoxyCompactList}\item 
void \hyperlink{class_contact_list_aaef8c20a5b819565a307f1e0133b47c2}{receive\-Message} (\-Q\-String, \-Q\-String, \-Q\-String, \-Q\-String)
\begin{DoxyCompactList}\small\item\em \-Slot that receives the message. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_aa5d1b7c12f86adfc63ec909f5a66456b}{
void \hyperlink{class_contact_list_aa5d1b7c12f86adfc63ec909f5a66456b}{on\-\_\-\-Exit\-Button\-\_\-clicked} ()}
\label{class_contact_list_aa5d1b7c12f86adfc63ec909f5a66456b}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user clicks the exit button. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a1eeeb69f2d97bb6dc3b5b4cb6f1834f1}{
void \hyperlink{class_contact_list_a1eeeb69f2d97bb6dc3b5b4cb6f1834f1}{on\-\_\-\-Settings\-\_\-clicked} ()}
\label{class_contact_list_a1eeeb69f2d97bb6dc3b5b4cb6f1834f1}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user clicks the settings button. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a8e862650787be196bca3b7d1d65aa488}{
void \hyperlink{class_contact_list_a8e862650787be196bca3b7d1d65aa488}{on\-\_\-\-Remove\-Buddy\-\_\-clicked} ()}
\label{class_contact_list_a8e862650787be196bca3b7d1d65aa488}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user clicks the remove buddy button. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_ac675975c3da535634117b68cf1c3d753}{
void \hyperlink{class_contact_list_ac675975c3da535634117b68cf1c3d753}{on\-\_\-\-Add\-Buddy\-\_\-clicked} ()}
\label{class_contact_list_ac675975c3da535634117b68cf1c3d753}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user clicks the add buddy button. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_ab4a689df858dd5cbe516a109316f9e9d}{
void \hyperlink{class_contact_list_ab4a689df858dd5cbe516a109316f9e9d}{handle\-Add\-Buddy\-Window\-Closed} ()}
\label{class_contact_list_ab4a689df858dd5cbe516a109316f9e9d}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user closes the add buddy window. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a886262bc8320286acb4cb5162e93c893}{
void \hyperlink{class_contact_list_a886262bc8320286acb4cb5162e93c893}{handle\-Remove\-Buddy\-Window\-Closed} ()}
\label{class_contact_list_a886262bc8320286acb4cb5162e93c893}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user closes the remove buddy window. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a912cae2f46bd2c8aea8b8350c53f2178}{
void \hyperlink{class_contact_list_a912cae2f46bd2c8aea8b8350c53f2178}{on\-\_\-requests\-Button\-\_\-clicked} ()}
\label{class_contact_list_a912cae2f46bd2c8aea8b8350c53f2178}

\begin{DoxyCompactList}\small\item\em \-Slot that determines if the user clicks the friend request button. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Private \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_contact_list_a1afa507f334964fb690a9c01712cd0b6}{
\-Ui\-::\-Contact\-List $\ast$ {\bfseries ui}}
\label{class_contact_list_a1afa507f334964fb690a9c01712cd0b6}

\item 
\hypertarget{class_contact_list_a4902e37cb8edc99c1c478ac0b5e49cea}{
\-Q\-String \hyperlink{class_contact_list_a4902e37cb8edc99c1c478ac0b5e49cea}{user\-Name}}
\label{class_contact_list_a4902e37cb8edc99c1c478ac0b5e49cea}

\begin{DoxyCompactList}\small\item\em \-Username variable. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a16c07f6452fd22bfb4ca3071e75d7f54}{
\hyperlink{class_client}{\-Client} $\ast$ \hyperlink{class_contact_list_a16c07f6452fd22bfb4ca3071e75d7f54}{main\-Soc}}
\label{class_contact_list_a16c07f6452fd22bfb4ca3071e75d7f54}

\begin{DoxyCompactList}\small\item\em \-Main socket variable. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_a6576726086f9b9ead5e525d480aa4e02}{
\-Q\-Vector$<$ \hyperlink{classchat_window}{chat\-Window} $\ast$ $>$ $\ast$ \hyperlink{class_contact_list_a6576726086f9b9ead5e525d480aa4e02}{chat\-List}}
\label{class_contact_list_a6576726086f9b9ead5e525d480aa4e02}

\begin{DoxyCompactList}\small\item\em \-Chat list variable. \end{DoxyCompactList}\item 
\hypertarget{class_contact_list_ade303b1210017b474400dedcea0f915b}{
\hyperlink{classfriend_requests_window}{friend\-Requests\-Window} $\ast$ \hyperlink{class_contact_list_ade303b1210017b474400dedcea0f915b}{requests\-Window}}
\label{class_contact_list_ade303b1210017b474400dedcea0f915b}

\begin{DoxyCompactList}\small\item\em \-Instance of a request window. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-The \hyperlink{class_contact_list}{\-Contact\-List} helper methods. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{class_contact_list_ac88b01325eb1c8e62860791714e40a5e}{
\index{\-Contact\-List@{\-Contact\-List}!on\-\_\-list\-Widget\-\_\-item\-Clicked@{on\-\_\-list\-Widget\-\_\-item\-Clicked}}
\index{on\-\_\-list\-Widget\-\_\-item\-Clicked@{on\-\_\-list\-Widget\-\_\-item\-Clicked}!ContactList@{\-Contact\-List}}
\subsubsection[{on\-\_\-list\-Widget\-\_\-item\-Clicked}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::on\-\_\-list\-Widget\-\_\-item\-Clicked (
\begin{DoxyParamCaption}
\item[{\-Q\-List\-Widget\-Item $\ast$}]{item}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{class_contact_list_ac88b01325eb1c8e62860791714e40a5e}


\-Slot that will determine if a user has been clicked on the \hyperlink{class_contact_list}{\-Contact\-List}. 


\begin{DoxyParams}{\-Parameters}
{\em item} & \-The username of the person in the \hyperlink{class_contact_list}{\-Contact\-List} \\
\hline
\end{DoxyParams}
\hypertarget{class_contact_list_ac9e57f3c02887a5475a88a354c1c0027}{
\index{\-Contact\-List@{\-Contact\-List}!pass\-Host@{pass\-Host}}
\index{pass\-Host@{pass\-Host}!ContactList@{\-Contact\-List}}
\subsubsection[{pass\-Host}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::pass\-Host (
\begin{DoxyParamCaption}
\item[{\-Q\-String}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_contact_list_ac9e57f3c02887a5475a88a354c1c0027}


\-Signal that sends the address of the user. 


\begin{DoxyParams}{\-Parameters}
{\em address} & \-The address to be passed \\
\hline
\end{DoxyParams}
\hypertarget{class_contact_list_a3a5c57a8c0bbe5a7f6fd8350122cb580}{
\index{\-Contact\-List@{\-Contact\-List}!pass\-Name@{pass\-Name}}
\index{pass\-Name@{pass\-Name}!ContactList@{\-Contact\-List}}
\subsubsection[{pass\-Name}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::pass\-Name (
\begin{DoxyParamCaption}
\item[{\-Q\-String}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_contact_list_a3a5c57a8c0bbe5a7f6fd8350122cb580}


\-Signal that sends the username. 


\begin{DoxyParams}{\-Parameters}
{\em user\-Name} & \-The username to be sent \\
\hline
\end{DoxyParams}
\hypertarget{class_contact_list_a4a76120938512ead7848ccf99b47034b}{
\index{\-Contact\-List@{\-Contact\-List}!pass\-Num\-Friends@{pass\-Num\-Friends}}
\index{pass\-Num\-Friends@{pass\-Num\-Friends}!ContactList@{\-Contact\-List}}
\subsubsection[{pass\-Num\-Friends}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::pass\-Num\-Friends (
\begin{DoxyParamCaption}
\item[{\-Q\-String}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_contact_list_a4a76120938512ead7848ccf99b47034b}


\-Signal sends the number of friends. 


\begin{DoxyParams}{\-Parameters}
{\em number} & \-The number of friends \\
\hline
\end{DoxyParams}
\hypertarget{class_contact_list_a936b252866aced12a7d5b8cdb3f63ec0}{
\index{\-Contact\-List@{\-Contact\-List}!populate\-List@{populate\-List}}
\index{populate\-List@{populate\-List}!ContactList@{\-Contact\-List}}
\subsubsection[{populate\-List}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::populate\-List (
\begin{DoxyParamCaption}
\item[{\-Q\-String\-List}]{list\-Of\-User}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{class_contact_list_a936b252866aced12a7d5b8cdb3f63ec0}


\-Slot that will add a user\-Name to the \hyperlink{class_contact_list}{\-Contact\-List}. 


\begin{DoxyParams}{\-Parameters}
{\em chat\-List} & \-The list of all users in the \hyperlink{class_contact_list}{\-Contact\-List} \\
\hline
\end{DoxyParams}
\hypertarget{class_contact_list_aaef8c20a5b819565a307f1e0133b47c2}{
\index{\-Contact\-List@{\-Contact\-List}!receive\-Message@{receive\-Message}}
\index{receive\-Message@{receive\-Message}!ContactList@{\-Contact\-List}}
\subsubsection[{receive\-Message}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::receive\-Message (
\begin{DoxyParamCaption}
\item[{\-Q\-String}]{from\-User, }
\item[{\-Q\-String}]{to\-User, }
\item[{\-Q\-String}]{message, }
\item[{\-Q\-String}]{time\-Sent}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{class_contact_list_aaef8c20a5b819565a307f1e0133b47c2}


\-Slot that receives the message. 


\begin{DoxyParams}{\-Parameters}
{\em from\-User} & the name of the user who sent message \\
\hline
{\em to\-User} & the name of the user receiving the message \\
\hline
{\em message} & the message being sent \\
\hline
{\em time\-Sent} & the time in which the message was sent \\
\hline
\end{DoxyParams}
\hypertarget{class_contact_list_a40f2b1a0e9932ab2473e75bfac27fed6}{
\index{\-Contact\-List@{\-Contact\-List}!send\-Message@{send\-Message}}
\index{send\-Message@{send\-Message}!ContactList@{\-Contact\-List}}
\subsubsection[{send\-Message}]{\setlength{\rightskip}{0pt plus 5cm}void \-Contact\-List\-::send\-Message (
\begin{DoxyParamCaption}
\item[{\-Q\-String}]{from, }
\item[{\-Q\-String}]{to, }
\item[{\-Q\-String}]{message, }
\item[{\-Q\-String}]{time}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{class_contact_list_a40f2b1a0e9932ab2473e75bfac27fed6}


\-Slot that sends the message with message attributes. 


\begin{DoxyParams}{\-Parameters}
{\em from} & \-The name of the from user \\
\hline
{\em to} & \-The name of the to user \\
\hline
{\em message} & \-The chat message \\
\hline
{\em time} & \-The time the message was sent \\
\hline
\end{DoxyParams}


\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
/\-Users/plamontagna/\-Documents/spa-\/cs340project/im\-\_\-client\-\_\-v2/\hyperlink{contactlist_8h}{contactlist.\-h}\item 
/\-Users/plamontagna/\-Documents/spa-\/cs340project/im\-\_\-client\-\_\-v2/\hyperlink{contactlist_8cpp}{contactlist.\-cpp}\end{DoxyCompactItemize}
